package com.yc.system.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yc.framework.config.CustomFloatDeserializer;
import com.yc.system.entity.Book;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;

public class Filterbook extends Book {
    private Integer pId;
    @JsonDeserialize(using = CustomFloatDeserializer.class)
    private float hPrice;
    @JsonDeserialize(using = CustomFloatDeserializer.class)
    private float lPrice;
    private String issuerName;

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public float gethPrice() {
        return hPrice;
    }

    public void sethPrice(float hPrice) {
        this.hPrice = hPrice;
    }

    public float getlPrice() {
        return lPrice;
    }

    public void setlPrice(float lPrice) {
        this.lPrice = lPrice;
    }

    public String getIssuerName() {
        return issuerName;
    }

    public void setIssuerName(String issuerName) {
        this.issuerName = issuerName;
    }
}
